// banner模块
import { ref } from 'vue'
import { getBannerAPI } from '@/api/home'
export function useBanner () {
  // 和banner相关的所有的代码
  const imgList = ref([])
  const fetchList = async () => {
    const res = await getBannerAPI()
    imgList.value = res.result
  }
  fetchList()
  return {
    imgList
  }
}
